class UserFriendRewardListModel {
  List<UserFriendRewardItemModel>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  UserFriendRewardListModel({
    this.list,
    this.pageNum,
    this.pageSize,
    this.total,
    this.totalPage,
  });

  UserFriendRewardListModel.fromJson(Map<String, dynamic> json) {
    list =
        json["list"] == null
            ? null
            : (json["list"] as List)
                .map((e) => UserFriendRewardItemModel.fromJson(e))
                .toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class UserFriendRewardItemModel {
  String? createTime;
  String? nickName;
  String? rewardAmount;
  String? rewardDesc;
  int? showId;
  String? userTel;

  UserFriendRewardItemModel({
    this.createTime,
    this.nickName,
    this.rewardAmount,
    this.rewardDesc,
    this.showId,
    this.userTel,
  });

  UserFriendRewardItemModel.fromJson(Map<String, dynamic> json) {
    createTime = json["createTime"];
    nickName = json["nickName"];
    rewardAmount = json["rewardAmount"];
    rewardDesc = json["rewardDesc"];
    showId = json["showId"];
    userTel = json["userTel"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["createTime"] = createTime;
    _data["nickName"] = nickName;
    _data["rewardAmount"] = rewardAmount;
    _data["rewardDesc"] = rewardDesc;
    _data["showId"] = showId;
    _data["userTel"] = userTel;
    return _data;
  }
}
